import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from 'app/ptpmc/guard/auth.guard';
const routes: Routes = [
    {
        path: '',
        loadChildren: './login/login.module#LoginModule'
    },
    {
        path: 'login',
        loadChildren: './login/login.module#LoginModule'
    },
    {
        path: 'login2',
        loadChildren: './login2/login.module#LoginModule'
    },
    {
        path: 'oauth/authorize',
        loadChildren: './login/login.module#LoginModule'
    },
    {
        path: 'ptpmc',
        loadChildren: './ptpmc/ptpmc.module#PTPMCModule',
        canActivate: [AuthGuard],
    },
    {
        path: 'token',
        loadChildren: './login/login.module#LoginModule'
    },
    {
        path: 'tv',
        loadChildren: './error-page/error-page.module#ErrorPageModule'
    },
    {
        path: 'line',
        loadChildren: './line-status/line-status.module#LineStatusModule'
    },
    {
        path: 'shop-selected',
        loadChildren: './shop-selected/plane.module#ShopSelectedModule'
    },
    {
        path: 'all-plane',
        loadChildren: './all-plane2/plane.module#AllPlaneModule'
    }
];

@NgModule({
    imports: [RouterModule.forRoot(routes)],
    exports: [RouterModule]
})
export class AppRoutingModule { }
